#ifndef LIBRAWH264_TO_BMP_H
#define LIBRAWH264_TO_BMP_H

//#include "librawh264_to_bmp_global.h"
#ifdef _WIN32

#ifdef LIBRAWH264_TO_BMP_EXPORTS
//#define LIBRAWH264_TO_BMP_API  __declspec(dllexport)
#define LIBRAWH264_TO_BMP_API
#else
//#define LIBRAWH264_TO_BMP_API  __declspec(dllimport)
#define LIBRAWH264_TO_BMP_API
#endif

#else
#define LIBRAWH264_TO_BMP_API

#endif


#ifdef __cplusplus
extern "C"
{
#endif // __cplusplus

    LIBRAWH264_TO_BMP_API void* h264_createProcessor();

    LIBRAWH264_TO_BMP_API bool h264_setImageReceiveCallback(void* handle, void* pfunc, void* puser);

    LIBRAWH264_TO_BMP_API bool h264_copy_raw_h264_frame(void* handle, unsigned char* pData, long length, bool isIframe,int width = 0, int height = 0);

    LIBRAWH264_TO_BMP_API void h264_closeProcessor(void* handle);

#ifdef __cplusplus
};
#endif // __cplusplus



#endif // LIBRAWH264_TO_BMP_H
